Since Spiritual Weapon 5e makes a melee spell attack, it can activate class features or other effects that trigger on a melee attack, as long as those features or effects don't specify they must come from a weapon held by the caster.