Nearly two million people had voted on Sunday as polling neared its close in Catalonia's disputed symbolic ballot on independence from Spain, the regional government said.