Judge sides with Texas in fight over Medicaid waiver