Oliver Ryan MP, who represents Burnley, was given a six-month suspension but will regain the Labour whip when the House of Commons returns next month.