A Texas oil company with a stake in the oil well that caused the Deepwater Horizon disaster can’t claim a franchise tax refund for $4 billion in settlement expenses tied to the incident, a state appeals court ruled.