The Prime Minister poked fun at the actor following his x-rated rant