MPs give the green light for a pre-Christmas poll after months of deadlock over Brexit.