Hull FC head coach Tony Smith was pleased to clinch their first victory over St Helens since 2017 as they triumphed 34-6.