The government has been dealt a major setback on its sweeping bill, after failing to secure the backing of the Coalition.