A court blocked executive actions targeting Minnesota officials in what critics described as politically motivated retaliatory governance.