Two men who filmed themselves shouting antisemitic abuse have been given suspended sentences for their crimes.