The 2006 federal election resulted in a minority government led by the Conservative Party with Harper becoming the 22nd prime minister of Canada. During his first term, Harper confronted the In and Out scandal, while major legislation passed under Harper's leadership included the "Federal Accountability Act", the Québécois nation motion and the Veterans' Bill of Rights. After the 2008 federal election, in which the Conservative Party won a larger minority, Harper passed the Economic Action Plan in response to the financial crisis of 2007–2008, defeated a non-confidence motion by a potential coalition of opposition parties and ordered military intervention during the First Libyan Civil War. The 40th Canadian Parliament was eventually dissolved in March 2011, after another no-confidence vote over the Lockheed Martin F-35 Lightning II Canadian procurement. In the federal election, the Conservatives won a majority government. During his third term, Harper withdrew Canada from the Kyoto Protocol, launched Operation Impact in opposition to ISIL, repealed the long-gun registry, passed the "Anti-terrorism Act, 2015", launched Canada's Global Markets Action Plan and grappled with controversies surrounding the Canadian Senate expenses scandal and the Robocall scandal.