The rally came as the city’s government sought to reassure the public and foreign investors over the tough security laws proposed by Beijing that sent a chill through financial markets and drew a swift rebuke from foreign governments, international human rights groups and some business lobbies.