The United States will formally end its combat mission in Iraq by the end of the year but will continue to train and advise the Iraqi military, President Joe Biden announced on Monday.