Graham Platner, a Democrat, said he would remove the tattoo. He also sought to distance himself from old Reddit posts that drew criticism.