Spain OKs austerity plan; thousands demonstrators protest