China says the banning of "Glory to Hong Kong", a protest song that emerged during the city's massive democracy demonstrations in 2019, is a "necessary measure".