Texans top Dolphins 24-17