The decision will likely be appealed by Republican state leaders to the US Supreme Court.