The above narration is wrongly attributed to Imam Shafii (rahimullah).
Because Sunnis strongly believe that Allah (saw) alone will Judge all the Mankind ( & Jinn) and then allot them to Paradise or Hell as He sees fit and that He will not require services of anyone for this task.
What Imam Shafi (rahimullah) had said his famous couplet is: "If the love of Ale-Muhammad is considered Rafidism then let Jinn and humans witness that I am a Rafidi. "
Imam Shafi is only ascribing to himself Rafidism if Rafidism is indeed equivalent to loving Ahlul Bayt (r.a.a) . In this case all Sunnis are Rafidis, because all Sunnis love Ahlul Bayt (r.a.a) . Simply loving Ahlul Bayt (r.a.a) does not mean that one is a 12er Shia.
Imam Shafii had also said the following: I give preference (i.e in merits) to Abu Bakr, and then Umar, and then Uthman and then Ali Ibn Abi Talib (r.a.a) , for they are the Rightly Guided Khalifs etc"
Note the the order of preference of Imam Shafii (rahimullah)