The convictions of the activists was the city’s biggest national security case to date under a law imposed by Beijing that has all but wiped out public dissent.