The Gemini Deep Deep Survey. II. Metals in Star-forming Galaxies at Redshift 1.3