Plans to ban smartphones in schools have been dropped after the government refused to support a change in the law, Sky News understands.