The megamerger between two of the country's largest broadcast groups has been given a preliminary injunction.