The world's biggest economies will work to support global growth and better share the benefits of trade, policymakers said during the G20 meeting.