A Hong Kong court has dismissed all the appeals of prominent activists whose prosecution crushed much of the city's once-thriving pro-democracy movement.