The man accused of being the main plotter in al-Qaida’s Sept. 11, 2001, attacks has agreed to plead guilty