A football fan who used sexually offensive language towards a member of staff at a West Yorkshire stadium has been banned from football matches for three years.