If it's a cheap filter, just replace it. Otherwise, I'd just let the filter air out (or help it w/ a hair dryer) and throw it back on. I doubt much water got into the intake unless you ran the car under water, which I doubt.
The water-soaked filter probably restricted air to the engine...