Tractable Cost-Optimal Planning over Restricted Polytree Causal Graphs