Royal shaft is when you get treated badly or unfairly by someone else. so if anybody says to you "why you giving me the royal shaft" then it is because you made them mad or been a jerk.
wicked guy: hey your mom is a stupid whore
grease guy: hey man why you giving me the royal shaft?