How can they be turned away from Federal buildings?
Congress is a Federal building but under the control of… Congress. The same for Federal Courts - under the control of… the Federal Judiciary.
Except for the SCOTUS, federal court buildings are NOT under the control of the judiciary. Lower courts are established by congress, with venues allocated by the legislature and administered by the executive.