The tariffs would hamper a clean energy industry that the president has often railed against.