Judgment has been handed down in a legal case which will have far-reaching implications for the future use of working docks earmarked for development.