D.C. Mayor Muriel E. Bowser will announce legislation Thursday to legalize and regulate recreational marijuana dispensaries in the nation’s capital, setting up a potential showdown with the federal government.