From the war in Ukraine to the hotly contested midterm elections, the US president has faced lots of difficulties in 2022.