The United States appears on the brink of ending a four-decade-old ban on most exports of crude oil, an abrupt end to a years-long…