What legislation was passed to encourage the country from getting involved in a foreign war