The law "establishes that a discriminatory purpose was at least one of the substantial or motivating factors behind passage," Ramos wrote in her decision, adding that "the terms of the bill were unduly strict.