UK government loses key votes on Brexit bill