Roger Federer emerged triumphant from a historic first meeting with Serena Williams in the Hopman Cup on Tuesday.