Judge rules in favor of Medicaid expansion