The legislation , passed as an amendment to an unrelated military spending bill , now goes to the House of Representatives , where it faces an uncertain future .