The decision ends months of controversy over the proposed psychiatric hospital that Horry County residents have opposed since last fall.