China's Xi Jinping on Sunday secured a path to rule indefinitely as parliament abolished presidential term limits, handing him almost total authority to pursue a vision of transforming the nation into an economic and military superpower.