Williams had not competed in nearly four years, but she delivered 120 mph aces and powerful winners to help her doubles team to victory.