Laws designed to protect waterways have ended plans for thousands of homes, developers claim.