After more than a year of vociferous conflict between federal, state and regional officials and the owner of the Central Oregon and Pacific Railroad, the International Port of Coos Bay has said it will buy the 126-mile line for $16.6 million.