JAKARTA, Indonesia — Indonesian anticorruption officers have arrested the head of the country’s Parliament after a cat-and-mouse saga in which he ignored multiple orders to appear for questioning over a huge graft scandal, disappeared and then resurfaced at a hospital, claiming to have been severely injured in a car accident.

Officers from the Corruption Eradication Commission, a government agency, took the politician, Setya Novanto, the speaker of the Indonesian House of Representatives, into custody Sunday night after doctors at a hospital in the capital, Jakarta, cleared him for release.

Mr. Setya, 62, a leader of one of Indonesia’s largest political parties who befriended President Trump during the 2016 American election campaign, was escorted out of the hospital in a wheelchair while wearing an orange suspect’s vest. He appeared weak and dazed.

Anticorruption officials issued a warrant for his arrest last week after he had failed to respond to nearly a dozen summonses to appear for questioning over accusations of his involvement in the embezzling of more than $170 million from a national identity card program. The graft scandal has already led to the convictions of two government officials and implicated dozens of other current and former lawmakers.