BRUSSELS — The European Union’s executive intensified its legal standoff with Hungary on Friday by taking the country to the EU’s highest court over a restrictive law on LGBT issues and media freedom. The EU had already tried for a year to make Hungary change a law that bans content portraying or promoting homosexuality. The European Commission said it “discriminates against people on the basis of their sexual orientation and gender identity.” “The Commission considers that the law violates the internal market rules, the fundamental rights of individuals (in particular LGBTIQ people) as well as — with regard to those fundamental rights — the EU values,” the statement said.