The Biden administration endorsed legislation Tuesday that would end the disparity in sentences between crack and powder cocaine offenses that President Biden helped create decades ago, a step that highlights how his attitudes on drug laws have shifted over his long tenure in elected office.