This is impossible, all the people who are carrying phones, laptops..., that would be impossible to ban all electronics with batteries, full stop, I don't know where you got that news from
Usually, the rule is that you aren't allowed to carry electronics that can't turn on
(i.e. without a battery or with an empty battery) because CBP can elect to search it or more easily check that the laptop is actually a laptop and not a hideout for illegal substances
From this answer
The whole idea behind making sure that electronic devices work is to make sure that the internal parts are not replaced with a bomb, if someone tries to smuggle a bomb inside an electronic device, it will not be possible to achieve that while keeping the original components intact, so the best is just to make sure the device is working and this will exclude any possibility of hiding bomb parts inside electronic devices (laptops, tablets, etc.). It is simple yet effective method.