Divert to an airport with as long a runway as possible and fly a "short field" approach. That uses maximum flaps and aims at minimum touchdown speed. You can land and stop most small planes in under 200m that way (if the brakes work)
Most commercial airports have runways of well over 2000m, So you just land there and let it roll out.
Large planes typically have multiple hydraulic systems, and within those systems there are "fuses" and accumulators to protect the vital parts (flight controls, brakes) in case there is a leak in another part.