Restricted Radon Transforms and Unions of Hyperplanes