Government defeated on Brexit bill