When did kings grant privileges to the nobles?