West Ham boss Julen Lopetegui believes his side “deserved to win” as they sealed a 2-0 victory over Newcastle at St James’ Park.