D.C. Mayor Muriel E. Bowser pledged to a packed room Thursday night that she was working to disentangle D.C. police from working alongside federal immigration authorities, as some in the crowd shouted in protest and others made emotional pleas to the mayor.