The administration of Prime Minister Anwar Ibrahim is facing an unprecedented internal crisis after the Attorney General disputed a royal directive allowing a convicted former prime minister to transfer to house arrest, testing the delicate balance of power between the civilian government and the monarchy.