UK government loses key Brexit court battle