Former Trump adviser Steve Bannon has been sentenced to four months in prison for contempt of Congress, pending an appeal of his case.