Metal enrichment, dust, and star formation in galaxies at high redshifts. I: The z=2.3091 absorber toward PHL 957