Brazil's top court rules to make homophobia a crime