Embattled Jordan PM resigns over tax protests