New Jersey Governor Chris Christie’s administration violated state law in the way it withdrew from a regional program to reduce greenhouse-gas emissions, a state appellate court ruled.