Minneapolis teachers ratify contract