President Joe Biden has formally apologised to Native Americans for the "sin" of a government-run boarding school system that separated families.