Health care plan takes a hit in court