Mr. Trump’s threats of sweeping inquiries if re-elected came as local prosecutors in New York and Georgia were intensely scrutinizing him.