Spain says the new tax money will go to building homes in Madrid, free travel on state railways and providing scholarships for students.