Benefits for American production of solar panels and electric vehicles have attracted criticism from Brussels and elsewhere