A federal judge has blocked the state of Hawaii from enforcing a recently enacted ban on firearms on its prized beaches and in other areas including banks, bars and parks, citing last year’s landmark U.S. Supreme Court ruling expanding gun rights.