> it may be procedurally simpler for the Spanish government to compel ISPs to block IPs.
The Spanish government is not the ones enforcing the ban here. La Liga and Telefonica went to the judges, who are the ones making ISPs to enforce these blocks, as an intermediate "fix" essentially.
This appears to be using "government" in American English sense, where "government" refers to anyone who works for the state in any capacity, including courts, not just the executive.
“The government” (what we would call “the executive”) being equated to the state as a whole is a uniquely American concept, likely because the word “state” already has a different meaning in the federalist sense.
Judges in Spain are not part of the government ("Gobierno"). They are part of the Poder Judicial, the judiciary. The Spanish Constitution separates these clearly, give it a skim if you haven't already.