NSW Police has secured a victory over a group of protesters who had planned to blockade the Port of Newcastle for 50 hours.