Muriel Bowser was sworn in Friday as the seventh elected mayor of the District of Columbia, promising to bring new energy to city government and combat growing inequality in the prosperous nation’s capital.