In rare political pact, Socialists back separatist government’s budget in Catalonia