The Queen has granted royal assent to the European Union (Notification of Withdrawal) Bill, giving Theresa May the legal power to choose when to start formal Brexit talks.