No it was not. Their actions were not legal.
They absolutely were, Salmon Chase's witting lies notwithstanding.