Manhattan prosecutor steps down, ending stand-off with Attorney General Barr