The landlord's failure to provide you an accounting or refund your security deposit within the 30 day period created a "presumption of bad faith." (See Texas Property Code sec. 92.108). That is not a finding of bad faith, but it places the burden on the landlord to overcome the presumption. It appears as though the judge chose to find that his actions were not done in bad faith.
If this particular landlord had a routine of failing to return security deposits or provide an accounting, I doubt he would have been able to overcome the presumption if such evidence were properly before the court.
The information contained in this response is provided as a service and does not constitute legal advice. As legal advice must be tailored to the specific circumstances of each case, and laws are constantly changing, nothing provided herein should be used as a substitute for the advice of competent legal counsel.