A bad judgment with even worse political optics.