A judge ruled that an HIV pill to prevent infection could be funded by the U.K.'s state health service, in a win for campaigners.