US legislation aiming to punish foreign energy companies that do business with Iran took a step forward Tuesday as lawmakers attacked the Islamic republic’s nuclear drive and “terrorism.”The foreign affairs panel of the House of Representatives passed the proposed law by 37 votes to one, with Democrats and Republicans alike accusing Iran of using energy investment for nefarious ends.