OK first let me state I am a sasuke fan. Secondly I do not overrate him say Sasuke>Hashi or dumb shit like that.
Ok let me begin. and I don't know/feel like scanning images you've seen this battle so you should know what I'm talking about.
At the beginning of the battle sasuke stated he was trying to get info on itachi not kill deidara. He fought deidara that entire battle avoiding killing him.
1. Tobi assisted Deidara planting the mines which interfered with sasuke speed feats. Sasuke countered this by using his intelligence and skills. Lightning to nullify Earth.
2. Deidara's hatred played a key role in sasuke victory. He wasn't thinking straight and fighting out of pure rage and hate. Sasuke used this to his advantage as well. He kept his kool but got in deidara's head mentally.
3. Deidara tried all his techniques C2 bombs, C4 bomb, The Dragon, microscopic bombs, and the big SHABANG BOMB. Very Impressive to say the least. Sasuke Lightning, Intelligence and quick decisions helped him out of all these attacks.
Ok the "plot hole" as most cry babies call it.
Sasuke never claimed he was out of chakra. Deidara said he was but Sasuke never stated that. Don't believe me feel free to read the manga chapters 362-363. However Sasuke did use a T/S jutsu to get manda I'm guessing from Ryūchi Cave put in under a genjutsu and brought him back to take the blast. (I don't get why sasuke just didn't stay at Ryūchi Cave would have made more sense but whatever.)
I hope this clears that sasuke did have chakra to use a T/S nin and genjutsu. Deidara made an wrong guess by saying he didn't. And I personally think the fight would have been over sooner if Sasuke wasn't trying to extract information from deidara. But Whatever I hope this clears up some nonsense.