The 2006 federal election resulted in a minority government led by the Conservative Party with Harper becoming the 22nd prime minister of Canada. This was to become Canada's longest-serving minority government, but by the proportion of seats it was also the smallest minority government since Confederation. 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. In the 2008 federal election, the Conservative Party outperformed and won a stronger minority, showing a moderate increase in the percentage of the popular vote and increased representation in the House of Commons, with 143 of 308 seats. During his second term, 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 deemed his Cabinet to be in contempt of Parliament, over the Lockheed Martin F-35 Lightning II Canadian procurement. In the federal election that followed, the Conservatives won a decisive majority government which was the first majority mandate since the 2000 federal election. 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.