The past three years have been a roller coaster for Robinhood chief legal compliance and corporate affairs officer Dan Gallagher, who grabbed the legal reins at the online brokerage only months before the meme stock-trading craze plunged the company into chaos.