I am trying to replace a standard light switch with a dimmer switch

. I took out the old switch and installed the new one and now the rest of the outlets in the room don't wont. The light (and dimmer) both work fine.
Please see the images below. There are three wires coming out of the switch, two black and one green. I assume that the green is the ground. There were three black wires all coming out of the wall, and a big clump of exposed copper wiring.
I have the two black wires from the switch connected to the two black wires that I remember were connected to the two screws on the old switch. I connected the green wire to the other wire that was coming out of the old switch. This configuration gave me the results that were described above.
Additionally, I tried connecting the green wire to the black wire AND the copper coil and got the same results.
Any suggestions as to what's going wrong?