This is not an anti-Ryanair move, it's a cynical cash grab by a broke government which will hit mostly the network airlines who do most of their Spanish business at BCN and MAD - and who have to absorb the increases for all tickets booked before the Spanish announcement.
The Spanish action is almost certainly in breach of the EU Airport Charges Directive. Remains to be seen whether it will be legally challenged.