Before the New gTDLs came out around 2014 or so ICANN gave first choice to TM holders through the Sunrise period to register their brands before the domains were released to the public,
Also there was the Trademark Clearinghouse (TMCH) program that helped TM holders protect their brands,
In...