Minneapolis teachers ratify 2-year contract