Ravens hand Texans first loss of season