Working government in sight for Spain after 10 months