USCIS can't deny your I-485 since you filed a WOM lawsuit
even judge dismiss your lawsuit in future.But CIS can require extra interview ,separate you & ur spouse to question you,if after that they doubt your marriage is real one,then they still may deny the I-485.