In the first change of U.S. shipping lanes to protect an endangered species, ships steaming in and out of the Port of Boston will have to change course starting this weekend to avoid whales.