Poor grades assigned by the nonprofit watchdog to the Tenet hospitals in Florida were based on methodology that “has no scientific basis” and “misrepresents hospital safety,” a federal judge ruled.