The NSW Supreme Court has issued an order prohibiting the planned blockade of a major coal port by climate protesters.