President Ashraf Ghani and his main political rival held dual inaugurations on Monday as they both sought to claim rights to lead Afghanistan, despite intense U.S. intervention aimed at averting the rift.

In extraordinary scenes carried on split television screens across the country, Mr. Ghani and Abdullah Abdullah, the country’s former chief executive officer, held simultaneous ceremonies separated by a wall in Kabul.

Both...