There's nothing that says a buyer can not sue a seller for any reason. Small claims court is always an option. Whether one could win a case such as this needs to be discussed with an attorney.
We'd imagine in this case the seller fulfilled their obligation in terms of providing a valid and passing smog check. It becomes the buyers responsibility to ensure the vehicle is in the condition they wish to purchase one in. Used vehicles are usually sold as-is.