Judge approves $50M settlement to dairy farmers