Blocking Certain Top Level Domains

Simply create a new transport rule as illustrated below.

Exchange Admin Center→Mail Flow→Rules