Thousands of people attended the Budapest Pride march, defying efforts by the government of Prime Minister Viktor Orban to marginalize the country’s L.G.B.T.Q. community.