Lawmakers voted by 391 to 242 against the deal, the second time they have defeated it