A court has rejected a legal bid to prevent the demolition of dozens of public housing towers, but residents are considering an appeal to save their homes.