Catalonia 's parliament approved a plan that declares the northeastern region of seven million people a largely autonomous '' nation '' within Spain , setting the stage for a possible confrontation with the central government .