It was the first time such a bill had reached the National Assembly, but it faced an uphill battle.