United States, Canada book Rio Olympic berths