The Catalan Parliament approved the region becoming a republic, but the Spanish government is moving to take back control.