Hi there,
I'm sorry you experienced this but all hope is not lost. Just wait for your case to be returned to USCIS. The time frame can vary in the length of time it may take. Once USCIS has the notice, your petitioner will receive a NOIR( Notification of intentions not revoke), in the letter it should state the possible reason in which the consulate felt that they shouldn't give you the visa. Your petitioner would have to rebuttal each reason with evidence in proving your marriage is bonafide. Continue communication with your spouse and continue gathering evidence to better solicit your relationship. Best of luck!
P.S: I had experience this same thing with my husband, take a look at my timeline on my page