Local law-enforcement officers spotted the gunman who attempted to kill former president Donald Trump earlier than previously believed, according to newly released text messages that offer fresh details into the security failures at Trump’s campaign rally in Butler, Pa.