Cory A. Booker , an Ivy League-educated lawyer from the North Jersey suburbs , was sworn in as mayor of Newark Saturday , ending the 20-year run of Mayor Sharpe James and pledging to revive a struggling , perseverant city long synonymous with urban failure .