Titans beat Texans — barely — but still miss out on playoffs