The Commerce Department said the economy increased in the last quarter at the fastest rate in more than two years.