A Houston-based oil and gas company that emerged from bankruptcy in 2018 will be acquired by an Alabama-based company.