President Donald Trump closed out a major Navy shipbuilding announcement in Maryland the way only he can, by breaking into his signature dance to the Village People’s “Y.M.C.A.” while midshipmen and sailors roared, laughed, and filmed him on their phones.