Unique factorization of ideals in fully idempotent rings