Sam Williamson capped his comeback with victory in the 50m breaststroke just 11 months after he suffered a career-threatening injury.