Democratic-backed measure passes 219–211 but faces uncertain future in Senate and potential presidential veto