Detroit Mayor Kwame Kilpatrick has agreed to plead guilty to obstruction charges and will step down after more than six years leading the nation's 11th-largest city.