Legal challenge to King’s College London research study claimed it could harm participants but was rejected