Most of the United States' controversial Patriot Act will remain in force under the USA Freedom Act.