The speaker, who has been fighting to kill the bill for months, admits defeat and votes to pass the legislation.