BMA Resident Doctors Committee is criticised after condemning UK ruling on biological sex