The Senate rejected an amendment to legislation reauthorizing the Export-Import Bank that would have prevented the agency from backing many foreign fossil fuel projects.