A federal appeals court on Wednesday declined to revive a lawsuit Walmart filed against the U.S. Department of Justice over federal law governing opioid prescription practices, a decision that comes as the retail giant faces separate litigation related to the nationwide opioid crisis.