Is it appropriate to pray behind an imam who makes too many and totally unnecessary movements during the prayer, such as adjusting his head cover and robes?
Your prayer behind such an imam is perfectly correct and valid, since you are not responsible for his behavior. There are differences between schools of Fiqh concerning movement during prayers and whether they invalidate the prayer or not. Some schools say such movements, even if they are frequent do not affect the validity of the prayer. Unfortunately, some people use this to make totally unnecessary movements that not only make their prayer the opposite of serenity and tranquility, both of which are needed in prayer. You find that such a person begins to move his hands here and there immediately after starting prayers. He may first adjust his headgear, then take something out of his pocket to look at, then he replaces it only to reach his other pocket and take out a tissue to blow his nose, etc. This is all wrong and unbefitting of standing in front of God and addressing Him. Such people need advice by good scholars.