Reading FC have been relegated to League One after Huddersfield Town beat Sheffield United to secure safety.